<!--
  @author heguanghua
  @since 2019/06/12 11:57
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<div class="layui-card-body" th:fragment="query">

    <input type="hidden" name="channelId" th:value="${query.channelId}">

    <div class="zmn-form-item">
        <div class="item-inline col2">
            <label class="inline-label">开通区域：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline col3">
                        <select name="provinceId" id="provinceId" lay-filter="provinceId" lay-search>
                            <option value="">-选择-</option>
                            <option th:each="province:${provinces}" th:value="${province.areaId}"
                                    th:selected="${province.areaId == query.provinceId}" th:text="${province.name}"></option>
                        </select>
                    </div>
                    <div class="box-input-inline col3">
                        <select name="cityId" id="cityId" lay-filter="cityId" lay-search>
                            <option value="">-选择-</option>
                            <option th:each="city:${citys}" th:value="${city.areaId}"
                                    th:selected="${city.areaId == query.cityId}" th:text="${city.name}"></option>
                        </select>
                    </div>
                    <div class="box-input-inline col3">
                        <select name="countryId" lay-search id="countryId" lay-filter="countryId">
                            <option value="">-选择-</option>
                            <option th:each="country:${countrys}" th:value="${country.areaId}"
                                    th:selected="${country.areaId == query.countryId}" th:text="${country.name}"></option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-submit">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-board-form-submit"><i class="layui-icon">&#xe615;</i></button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe669;</i></button>
        </div>

    </div>

</div>

</html>